import { defineStore } from "pinia";

export const supplierListStore = defineStore("supplierListStoreId", () => {
    const detailData = ref([
        {
            type: "text",
            prop: "supplierType",
            name: "供应商类型",
            value: null
        },
        {
            type: "text",
            prop: "supplierName",
            name: "供应商名称",
            value: null
        },
        {
            type: "text",
            prop: "supplierKey",
            name: "供应商Key",
            value: null
        },
        {
            type: "text",
            prop: "supplierName",
            name: "供应商名称",
            value: null
        },

        {
            type: "text",
            prop: "isp",
            name: "运营商",
            value: null
        },
        {
            type: "text",
            prop: "extInfo",
            name: "扩展信息",
            value: null
        }
    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
            
                {
                    label: '供应商名称',
                    prop: 'supplierName',
                    type: 'copy',
                    minWidth: '200px',
                    hidden: true,
                },
                {
                    label: '供应商编码',
                    prop: 'supplierCode',
                    type: 'copy',
                    minWidth: '200px',
                    hidden: true,
                },
                {
                    label: '供应商Key',
                    prop: 'supplierKey',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '供应商类型',
                    prop: 'supplierType',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    label: '运营商',
                    prop: 'isp',
                    type: 'normal',
                    minWidth: '200px',
                    hidden: true,
                },

          
                {
                    label: '扩展信息',
                    prop: 'extInfo',
                    type: 'normal',
                    minWidth: '250px',
                    hidden: true,
                },
                {
                    type: 'handle',
                    label: '操作',
                    minWidth: '150',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
    })
    
    return {
        detailData, tableProp
    }
})